*Do File for the Individual Level Analysis in "Favoring Co-Partisan Controlled Areas in Central Government Distributive Programs: The Role of Local Party Organizations"

*Please use Favoring Co-Partisans Individual Level Dataset.dta (saved in Stata Version 15)

*Please contact authors for more information about data as well as using data 

*outreg2 package needs to be installed first

*PC_R&R 

*Table 5
*change directory first for the outreg command
*cd C:\data
probit greencard2 akparticontrol incomeelig4_2  incomeelig4_2akp incomeelig4_3 incomeelig4_3akp incomeelig4_4 incomeelig4_4akp education housetype2 housetype4 housetype5 housetype6 employed age female kurdish kurdishcontrol mhpnonpartisanvoter mhpnonpartisanvoterakp akp2007 akpartishare2007 lnvoters kurulantoplam11th if eligible==1, cluster(ilceid)
outreg2 using tablemaintext, bdec(3) excel replace label
probit greencard2 akparticontrol incomeriditpercap incomeriditpercapakp education housetype2 housetype4 housetype5 housetype6 employed age female kurdish kurdishcontrol mhpnonpartisanvoter mhpnonpartisanvoterakp akp2007 akpartishare2007 lnvoters kurulantoplam11th if eligible==1, cluster(ilceid)
outreg2 using tablemaintext, bdec(3) excel append label

*Online Appendix

*Split Sample Analysis
logit greencard2 incomeelig4_2 incomeelig4_3 incomeelig4_4 education housetype2 housetype4 housetype5 housetype6 employed age female kurdish mhpnonpartisanvoter akp2007 if eligible==1 & akparticontrol==1, cluster (ilceid)
outreg2 using tableappendix1, bdec(3) excel replace label
logit greencard2 incomeelig4_2 incomeelig4_3 incomeelig4_4 education housetype2 housetype4 housetype5 housetype6 employed age female kurdish mhpnonpartisanvoter akp2007 if eligible==1 & akparticontrol==0, cluster (ilceid)
outreg2 using tableappendix1, bdec(3) excel append label
clogit greencard2 incomeelig4_2 incomeelig4_3 incomeelig4_4 education housetype2 housetype4 housetype5 housetype6 employed age female kurdish mhpnonpartisanvoter akp2007 if eligible==1 & akparticontrol==1, group (ilceid)
outreg2 using tableappendix1, bdec(3) excel append label
clogit greencard2 incomeelig4_2 incomeelig4_3 incomeelig4_4 education housetype2 housetype4 housetype5 housetype6 employed age female kurdish mhpnonpartisanvoter akp2007 if eligible==1 & akparticontrol==0, group (ilceid)
outreg2 using tableappendix1, bdec(3) excel append label

*Linear Probability Models with Split Samples
reg greencard2 incomeelig4_2 incomeelig4_3 incomeelig4_4 education housetype2 housetype4 housetype5 housetype6 employed age female kurdish mhpnonpartisanvoter akp2007 if eligible==1 & akparticontrol==1, cluster (ilceid)
outreg2 using tableappendix2, bdec(3) excel replace label
reg greencard2 incomeelig4_2 incomeelig4_3 incomeelig4_4 education housetype2 housetype4 housetype5 housetype6 employed age female kurdish mhpnonpartisanvoter akp2007 if eligible==1 & akparticontrol==0, cluster (ilceid)
outreg2 using tableappendix2, bdec(3) excel append label

*Full Tables
probit greencard2 akparticontrol income2 income2akp income3 income3akp income4 income4akp income5 income5akp income6 income6akp household2 household3 household4 education housetype2 housetype4 housetype5 housetype6 employed age female kurdish kurdishcontrol mhpnonpartisanvoter mhpnonpartisanvoterakp akp2007 akpartishare2007 lnvoters kurulantoplam11th if eligible==1, cluster(ilceid)
outreg2 using tableappendix3, bdec(3) excel replace label
probit greencard2 akparticontrol incomeelig4_2  incomeelig4_2akp incomeelig4_3 incomeelig4_3akp incomeelig4_4 incomeelig4_4akp education housetype2 housetype4 housetype5 housetype6 employed age female kurdish kurdishcontrol mhpnonpartisanvoter mhpnonpartisanvoterakp akp2007 akpartishare2007 lnvoters kurulantoplam11th if eligible==1, cluster(ilceid)
outreg2 using tableappendix3, bdec(3) excel append label
probit greencard2 akparticontrol incomeriditpercap incomeriditpercapakp education housetype2 housetype4 housetype5 housetype6 employed age female kurdish kurdishcontrol mhpnonpartisanvoter mhpnonpartisanvoterakp akp2007 akpartishare2007 lnvoters kurulantoplam11th if eligible==1, cluster(ilceid)
outreg2 using tableappendix3, bdec(3) excel append label
probit greencard2 akparticontrol incomeptilepercap incomeptilepercapakp education housetype2 housetype4 housetype5 housetype6 employed age female kurdish kurdishcontrol mhpnonpartisanvoter mhpnonpartisanvoterakp akp2007 akpartishare2007 lnvoters kurulantoplam11th if eligible==1, cluster(ilceid)
outreg2 using tableappendix3, bdec(3) excel append label

